//
//  SpeechSettingCell.m
//  HeWeiZhiNeng
//
//  Created by 林建 on 17/12/7.
//  Copyright © 2017年 YanCeyMichael.github.io. All rights reserved.
//

#import "SpeechSettingCell.h"

@implementation SpeechSettingCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self =[super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        //功能图
        self.productView = [UIImageView new];
        [self addSubview:self.productView];
        //功能标签
        self.titleLabel = [UILabel new];
        [self addSubview:self.titleLabel];
        self.titleLabel.textAlignment = NSTextAlignmentRight;
        self.titleLabel.font = Common_Font(15);
        self.titleLabel.textColor = Color.theme;
    }
    return self;
}

-(void)layoutSubviews{
    [self.productView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.mas_centerY);
        make.left.mas_equalTo(self.mas_left).offset(34);
        make.size.mas_equalTo(CGSizeMake(22, 26));
    }];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.mas_centerY);
        make.right.mas_equalTo(self.mas_right).offset(-60);
        make.size.mas_equalTo(CGSizeMake(40, 20));
    }];
}
@end
